<?php


namespace app\api\model;


use think\Model;

class User extends Model
{

    protected $name = 'user';

    /**
     * 关联Userinfo表
     * @return \think\model\relation\HasOne
     */
    public function userInfo(){
        return $this->hasOne('UserInfo','user_id','id');
    }


}